﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Media;

namespace ZoneLine.Views.converts
{
    internal class ConStateConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is bool a && a)
            {
                return new SolidColorBrush(Color.FromRgb(0xB0, 0xF0, 0x96));
            }
            return new SolidColorBrush(Color.FromRgb(0xfb, 0x56, 0x56));
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
